<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
		<style>
			
		</style>
		<script>
			
			/*function add(a,b){
				b = b || 10;
				return a + b;	
			}

			console.log(add(1,2));
			console.log(add(1,0));*/

			/*function add(a,b={miaov:1}){
				return a + b.miaov;	
			}

			console.log(add(1,2));
			console.log(add(1,{miaov:3}));*/

			function add(a=10,b=1){
				// let a = 10;  // 在函数体内已经存在a变量了
				console.log(a+b);
			}

			add(1,1)

		</script>
	</head>

	<body>
		<ul>
			<li>11</li>
		</ul>
	</body>
</html>